// src/types/login.ts
export interface LoginRequest {
  user: {
    username?: string;
    password?: string;
    phone?: string;
  };
  code?: string;
}

export interface Brand {
  brandId?: number;
  brandName?: string;
  brandLogoUrl?: string;
  brandDescription?:string,
  backgroundImageUrl?:string,
  averageRating?:number,
  positiveReviewCount?:number,
  salesVolume?:number,
  createdAt?:Date,
  updateAt?:Date

}

export interface User {
  userId: number;
  username: string;
  phone: string;
  avatar: string;
  isActive:number
}

export interface LoginResponse {
  state: any;
  code: number;
  msg: string;
  data: {
    brands: Brand[];
    user: User;
  };
}
export interface ConfirmBrandRequest {
  userId: string;
  brandId: string;
}

export interface ConfirmBrandResponse {
  state: any;
  code: number;
  msg: string;
  data: {
    state: any;
    msg:string
    token: string;
  };
}
